﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics.Contracts;
using System.Linq;

namespace ProjectBase.Core.Dao
{
    /// <summary>
    /// The IDbCommand to be wrapped in transaction, forcing all changes to be flushed at once when all operations where successfull
    /// (unit of work) - or rollback on any failure
    /// </summary>
    public interface IDbRequestSession
    {
        IDbCommand Command { get; set; }
        bool OpenTransaction { get; set; }
    }
}